<template>
  <div class="layout">
    <header class="header"></header>
    <main class="main">
      <!-- 二级路由展示区域 -->
      <router-view></router-view>
    </main>
    <footer-bar></footer-bar>
  </div>
</template>

<script>
import FooterBar from '@/components/FooterBar.vue'

export default {
  components: { FooterBar },
}
</script>

<style lang="scss" scoped>
.layout {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.header {
  height: 50px;
  background: skyblue;
}
.main {
  flex: 1;
  overflow: auto;
}
.footer {
  height: 50px;
  background: skyblue;
}
</style>
